<!doctype html>
<html>
<head>
<script>
function startAnimation()
{
  var player = node.animate([{ width: "100px" }, { width: "200px" }], 100);
}
</script>
</head>
<body onload="startAnimation()">
  <div id="node" style="background-color: red; height: 100px; width: 100px"></div>
</body>
</html>